package com.baike;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableDiscoveryClient
@EnableSwagger2
@MapperScan("com.baike.mapper")
@EnableFeignClients //启动feign
@EnableScheduling //定时任务
public class DiscountServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(DiscountServiceApplication.class,args);
    }
}
